package com.hzjy.manage.controller;


import com.hzjy.api.service.impl.IndexServiceImpl;
import com.hzjy.common.core.controller.BaseController;
import com.hzjy.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/manage/index")
public class HzjyIndexController extends BaseController {

    @Autowired
    private IndexServiceImpl indexService;

    /**
     * 挂牌数和摘牌数
     */
    @PreAuthorize("@ss.hasPermi('manage:link:list')")
    @GetMapping("/list")
    public AjaxResult TradeDelistNum(){
         Map<String,Integer> map = indexService.TradeDelistNum();
        return AjaxResult.success(map);
    }
}
